<template>
    <div>测试</div>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue';
import request from './utils/request';
interface Req {
    PD: string
    PS?: string
    UD?: string
}
interface Res {
    msg: string
    ret: string
    maxPageId: string
    pageSize:number
    list:any
}

const get15DaysWeatherByArea = (data: Req) => {
    return request<Res>({
        url: '/api/ximalaya/',
        method: 'GET',
        data
    })
}

onMounted(async () => {
    const res = await get15DaysWeatherByArea({
        PD: '1',
        PS: '200',
        UD: '1000667'
    })
    console.log(res.list)
})

</script>